export const data = {
  tag: "el-row",
  config: {},
  children: [
    {
      tag: "el-form",
      config: {
        props: {
          labelPosition: "right",
          rules: {
            name: [{ required: true, message: "请输入姓名", trigger: "blur" }],
          },
          model: {
            name: null,
            age: null,
            date: null,
            hobby: null,
          },
          templateName: "getstudent",
        },
        style: {
          width: "600px",
        },
        ref: "el-form-1",
      },
      children: [
        {
          tag: "el-col",
          config: {
            props: {
              span: 24,
              offset: 0,
              push: 0,
              pull: 0,
              tag: "div",
            },
          },
          children: [
            {
              tag: "el-form-item",
              config: {
                props: {
                  prop: "name",
                  label: "姓名",
                  labelWidth: "100px",
                },
              },
              children: [
                {
                  tag: "el-input",
                  config: {
                    props: {
                      value: "",
                      __field: "name",
                    },
                    on: {},
                  },
                },
              ],
            },
          ],
        },
        {
          tag: "el-col",
          config: {
            props: {
              span: 12,
              offset: 0,
              push: 0,
              pull: 0,
              tag: "div",
            },
          },
          children: [
            {
              tag: "el-form-item",
              config: {
                props: {
                  prop: "age",
                  label: "岁数",
                  labelWidth: "100px",
                },
              },
              children: [
                {
                  tag: "el-input",
                  config: {
                    props: {
                      value: "",
                      __field: "age",
                    },
                    on: {},
                  },
                  disabled: {
                    relation: [
                      {
                        field: "name",
                      },
                    ],
                  },
                },
              ],
            },
          ],
        },
        {
          tag: "el-col",
          config: {
            props: {
              span: 12,
              offset: 0,
              push: 0,
              pull: 0,
              tag: "div",
            },
          },
          children: [
            {
              tag: "el-form-item",
              config: {
                props: {
                  prop: "date",
                  label: "日期",
                  labelWidth: "100px",
                },
              },
              children: [
                {
                  tag: "el-date-picker",
                  config: {
                    props: {
                      value: "",
                      __field: "date",
                    },
                  },
                  disabled: {
                    relation: [
                      {
                        field: "name",
                      },
                      {
                        field: "age",
                      },
                    ],
                    logic: "or",
                  },
                },
              ],
            },
          ],
        },
        {
          tag: "el-col",
          config: {},
          children: [
            {
              tag: "el-form-item",
              config: {
                props: {
                  prop: "hobby",
                  label: "爱好",
                  labelWidth: "100px",
                },
              },
              children: [
                {
                  tag: "aegle-select",
                  config: {
                    props: {
                      value: "",
                      __field: "hobby",
                      templateName: "hobby",
                    },
                    attrs: {
                      placeholder: "请输入",
                    },
                  },
                },
              ],
            },
          ],
        },
      ],
      data: {},
    },
    {
      tag: "el-col",
      config: {
        props: {},
      },
      children: [
        {
          tag: "el-button",
          config: {
            props: {
              type: "primary",
              size: "small ",
            },
            domProps: {
              innerHTML: "提交",
            },
            ref: "el-button-1",
          },
          events: [
            {
              eventName: "click",
              executor: {
                name: "service",
                params: {
                  save: "savestudent",
                  update: "updatestudent",
                },
                executorConfig: {
                  isVerify: true,
                  ofRef: "el-form-1",
                },
              },
            },
          ],
          hiddenOn: "${}",
        },
        {
          tag: "el-button",
          config: {
            props: {
              type: "",
              size: "small ",
            },
            domProps: {
              innerHTML: "重置",
            },
          },
          events: [
            {
              eventName: "click",
              executor: {
                name: ["component", "resetForm"],
                params: {},
              },
            },
          ],
        },
      ],
    },
  ],
};
